package com.ruoyi.mes.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 车间任务卡对象 wksp_task_card
 * 
 * @author CFL
 * @date 2024-04-28
 */
public class WkspTaskCard extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 车间任务卡id */
    private Long id;

    /** 车间任务卡编号 */
    @Excel(name = "车间任务卡编号")
    private String sn;

    /** 车间任务id */
    private Long sptkId;

    /** 车间任务编号 */
    private String sptkSn;

    /** 产品名称 */
    private String proName;

    /** 产品id */
    private Long proId;

    /** 产品编号 */
    private String proSn;

    /** 生产批号 */
    @Excel(name = "生产批号")
    private String proLotNumber;

    /** 任务卡状态 */
    @Excel(name = "任务卡状态")
    private Integer taskState;

    /** 计划生产数量 */
    @Excel(name = "计划生产数量")
    private Long planNum;

    /** 已生产数量 */
    @Excel(name = "已生产数量")
    private Long proNum;

    /** 计划开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date planStartDate;

    /** 计划完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date planEndDate;

    /** 逻辑删除;0：存在；1：删除 */
    private Integer isDeleted;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新者 */
    private String updatedBy;

    /** 更新时间 */
    private Date updatedDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSn(String sn) 
    {
        this.sn = sn;
    }

    public String getSn() 
    {
        return sn;
    }
    public void setSptkId(Long sptkId) 
    {
        this.sptkId = sptkId;
    }

    public Long getSptkId() 
    {
        return sptkId;
    }


    public String getSptkSn() {
        return sptkSn;
    }

    public void setSptkSn(String sptkSn) {
        this.sptkSn = sptkSn;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public String getProSn() {
        return proSn;
    }

    public void setProSn(String proSn) {
        this.proSn = proSn;
    }

    public void setProLotNumber(String proLotNumber) 
    {
        this.proLotNumber = proLotNumber;
    }

    public String getProLotNumber() 
    {
        return proLotNumber;
    }
    public void setTaskState(Integer taskState) 
    {
        this.taskState = taskState;
    }

    public Integer getTaskState() 
    {
        return taskState;
    }
    public void setPlanNum(Long planNum) 
    {
        this.planNum = planNum;
    }

    public Long getPlanNum() 
    {
        return planNum;
    }
    public void setProNum(Long proNum) 
    {
        this.proNum = proNum;
    }

    public Long getProNum() 
    {
        return proNum;
    }

    public Long getProId() {
        return proId;
    }

    public void setProId(Long proId) {
        this.proId = proId;
    }
    public void setPlanStartDate(Date planStartDate) 
    {
        this.planStartDate = planStartDate;
    }

    public Date getPlanStartDate() 
    {
        return planStartDate;
    }
    public void setPlanEndDate(Date planEndDate) 
    {
        this.planEndDate = planEndDate;
    }

    public Date getPlanEndDate() 
    {
        return planEndDate;
    }
    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedDate(Date updatedDate) 
    {
        this.updatedDate = updatedDate;
    }

    public Date getUpdatedDate() 
    {
        return updatedDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sn", getSn())
            .append("sptkId", getSptkId())
            .append("proLotNumber", getProLotNumber())
            .append("taskState", getTaskState())
            .append("planNum", getPlanNum())
            .append("proNum", getProNum())
            .append("planStartDate", getPlanStartDate())
            .append("planEndDate", getPlanEndDate())
            .append("isDeleted", getIsDeleted())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedDate", getUpdatedDate())
            .append("remark", getRemark())
            .toString();
    }
}
